package user;

import Operation.Ioperation;
import book.Booklist;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-07-04
 * Time: 22:51
 */
public abstract class User {
    protected String name;
    Ioperation[] ioperations;

    public User(String name) {
        this.name = name;
        this.ioperations = ioperations;
    }

    public abstract int menu();
    public void doOperation(int chioce, Booklist booklist){
        this.ioperations[chioce].work(booklist);
    }
}
